package com.zq.assistant.app;

import com.zq.assistant.func.db.DBHelper;

/**
 * Created by zhangqiang on 17-5-10.
 */

public class App extends android.app.Application {

    public static App instance;
    private DBHelper dbHelper;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public DBHelper getDBHelper(){

        if(dbHelper == null){
            dbHelper = new DBHelper(this);
        }
        return dbHelper;
    }
}
